// package com.luyu.session;
//
// import org.springframework.security.core.userdetails.UserDetailsService;
// import org.springframework.security.web.authentication.rememberme.InMemoryTokenRepositoryImpl;
// import org.springframework.security.web.authentication.rememberme.PersistentTokenBasedRememberMeServices;
// import org.springframework.security.web.authentication.rememberme.PersistentTokenRepository;
// import org.springframework.stereotype.Service;
//
// import java.security.SecureRandom;
//
// @Service
// public class CusPersistentTokenBasedRememberMeServices extends PersistentTokenBasedRememberMeServices {
//     private PersistentTokenRepository tokenRepository = new InMemoryTokenRepositoryImpl();
//
//     private SecureRandom random;
//
//     public static final int DEFAULT_SERIES_LENGTH = 16;
//
//     public static final int DEFAULT_TOKEN_LENGTH = 16;
//
//     private int seriesLength = DEFAULT_SERIES_LENGTH;
//
//     private int tokenLength = DEFAULT_TOKEN_LENGTH;
//
//
//
//     public CusPersistentTokenBasedRememberMeServices(String key, UserDetailsService userDetailsService, PersistentTokenRepository tokenRepository) {
//         super(key, userDetailsService, tokenRepository);
//     }
//
//     @Override
//     protected String generateSeriesData() {
//         return super.generateSeriesData();
//     }
//
//     @Override
//     protected String generateTokenData() {
//         return super.generateTokenData();
//     }
// }
